package net.zjitc.service;

import net.zjitc.mapper.UserMapper;
import net.zjitc.pojo.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Author admin
 * @Date 2019/3/21 9:14
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper userMapper;
    @Override
    public User login(String name, String pass) {
        return userMapper.login(name,pass);
    }
}
